<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>simplify object</title>
</head>
<body>
<script>
    let a = 123;
    let b = 456;
    let c = 789;

    let obj1 = {
        "a": a,
        "b": b,
        "c": c,
    }

    console.log(obj1);

    let obj2 = {
        a,
        b,
        c,
    };

    console.log(obj2);

    // 有变量组成的对象，变量的名会作为 key，变量的值作为 value。

</script>
</body>
</html>